<?php

class User_Form_Admincp_Setting_Signup extends Nuo_Form
{
	function init()
	{

		$this -> setAttrib('class', 'formTable');

		$this -> addChild('radio', 'user_signup_mode', array(
			'Label' => 'Process Mode',
			'desc' => 'form-desc.Process Mode',
			'multiOptions' => array(
				'expression' => 'Expression',
				'multiple-steps' => 'Multiple Steps'
			),
		));

		$this -> addChild('select', 'user_signup_roleId', array(
			'label' => 'Role ID',
			'desc' => 'form-desc.Role ID',
			'multiOptions' => Nuo::getTable('permission/role') -> getMultiOptions()
		));

		$this -> addChild('yesno', 'user_signup_verify', array(
			'label' => 'Need Email Verify',
			'desc' => 'form-desc.Need Email Verify',
		));

		$this -> addChild('yesno', 'user_signup_autoApprove', array(
			'label' => 'Auto Approval',
			'desc' => 'form-desc.Auto Approval',
		));

		$this -> addChild('yesno', 'user_signup_autoEnable', array(
			'label' => 'Auto Enable',
			'desc' => 'form-desc.Auto Enable',
		));

		$this -> addChild('yesno', 'user_signup_autoLogin', array(
			'label' => 'Auto Login',
			'desc' => 'form-desc.Auto Login',
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');

	}

}
